// 隐式声明
function foo() {
  value = 100;
  return value;
}

console.log(foo());
// 非隐式声明
var value = 100;
function foo2() {
  value = 1000;
  return value;
}

console.log(foo2())